<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>web sdk用户登出</title>
    <link href="https://cdn.bootcss.com/bootstrap/4.0.0-alpha.3/css/bootstrap.css" rel="stylesheet">
    <style media="screen">
        .m-crm {
            max-width: 400px;
            margin: 2rem auto 2rem;
        }
    </style>
</head>

<body>
    <div class="m-crm">
        <button type="button" class="btn btn-primary btn-lg btn-block" onclick="logoff()">URL接入方式</button>
    </div>

    <script type="text/javascript">
        (function (w, d, n, a, j) {
            w[n] = w[n] || function () {
                (w[n].a = w[n].a || []).push(arguments);
            };
            j = d.createElement('script');
            j.async = true;
            j.src ='https://qiyukf.com/script/34dde0743db71fdf8cfee042cc576075.js';
            d.body.appendChild(j);
        })(window, document, 'ysf');

        window.logoff = function () {
            ysf('logoff');
        }
    </script>
</body>
</html>